package com.baitiaojun.system.admin.service.permission.impl;

import com.baitiaojun.system.admin.mapper.permission.UserRoleMapper;
import com.baitiaojun.system.admin.service.permission.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public boolean insertUserRole(Long userId, Long roleId) {
        return userRoleMapper.insert(userId, roleId);
    }
}
